<template>
	<div id="nav">
		
	</div>
	<router-view/>
</template>

<script>
	export default {
		onLaunch: function() {
			//console.log('App Launch')
			// this.$API.public.globalData.get().then(res => {
			// 	this.globalData.about = res.data
			// });
			
		},
		created() {
			//初始化websocket
			// let user = uni.getStorageSync('user');
			// let user_login = uni.getStorageSync('user') == '' ? false : true
			// if (user_login == true && this.$ws.socketTask == null) {
				this.$ws.init(1);
			//}
			console.log('App Show')
		},
		//destroyed: function() {
			//关闭websocket
			// if (this.$ws.socketTask != null) {
			// 	this.$ws.completeClose();
			// }
			
		//},
		// globalData: {
		// 	about: null,
		// }
	}
</script>

 
<style>
	/* 添加自定义类 .custom-table-background */
	
	#app {
		width: 100vw;
		height: 100vh;
		overflow: hidden;
	}
	* {
		margin: 0;
		padding: 0;
		list-style-type: none;
		box-sizing: border-box;
		outline: none;
	}

	html {
		margin: 0;
		padding: 0;
	}

	body {
		font-family: Arial, Helvetica, sans-serif;
		line-height: 1.2em;
		background-color: #f1f1f1;
		margin: 0;
		padding: 0;
		overflow: hidden;
	}


	#top-header {
		position: relative;
		width: 100%;
		height: 100px;
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		-webkit-box-pack: justify;
		-ms-flex-pack: justify;
		justify-content: space-between;
		-ms-flex-negative: 0;
		flex-shrink: 0
	}

	#top-header .header-center-decoration {
		width: 40%;
		height: 60px;
		margin-top: 30px
	}

	#top-header .header-left-decoration,
	#top-header .header-right-decoration {
		width: 25%;
		height: 60px
	}

	#top-header .center-title {
		position: absolute;
		font-size: 30px;
		font-weight: 700;
		left: 50%;
		top: 15px;
		-webkit-transform: translateX(-50%);
		transform: translateX(-50%)
	}
	
</style>

